<* include file=$header_file *>
<script type="text/JavaScript">
	if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='<* $title*>&nbsp;&raquo;&nbsp;Add User';if(parent.$('add2custom')) parent.$('add2custom').innerHTML='<* $title*>';
</script>
<div class="itemtitle">
	<h3>User Management&nbsp;&raquo;&nbsp;Add user  <input  type="button" value="  Refresh " class="btn" onClick="window.location.reload()"/> </h3>
</div>

<form action="/<* $controller *>/opadd" method="post"  name="press_form" id="press_form" >
	<table class="tb tb2 ">
		<tr>
			<th  class="partition" colspan="3">User Information</th>
		</tr>
		<tr>
			<td class="td22"><span class="red">*</span>User Name:</td>
			<td class="vtop "><input name="username" id="username" value="" type="text" class="txt" /></td>
			<td class="vtop tips2">&nbsp;</td>
		</tr>
		<tr>
			<td class="td22"><span class="red">*</span>Password:</td>
			<td class="vtop "><input name="password" id="password" value="" type="password" class="txt" /></td>
			<td class="vtop tips2">&nbsp;</td>
		</tr>
		<tr>
			<td class="td22"><span class="red">*</span>Confirmation Password:</td>
			<td class="vtop"><input name="repassword" id="repassword" value="" type="password" class="txt" /></td>
			<td class="vtop tips2">&nbsp;</td>
		</tr>  
		<tr>  
			<td class="td22"><span class="red">*</span>Allowed to login:</td>
			<td class="vtop "><input name="iscanlogin" type="checkbox" value="1" class="checkbox" />&nbsp;&nbsp;(Tick for allowing to login)</td>
		</tr>
		<tr>
			<th  class="partition" colspan="3">User Basic Information</th>
		</tr>
    
		<tr>
			<td class="td22">Name:</td>
			<td class="vtop "><input name="name" value="" type="text" class="txt" /></td>
			<td class="vtop tips2">&nbsp;</td>
		</tr>
		<tr>
			<td class="td22">Gender:</td>
			<td class="vtop "><input type="radio" class="radio" name="gender" value="0" id="gender0"><label for="gender0"> Male
				</label>&nbsp;&nbsp;<input type="radio" class="radio" name="gender" value="1" id="gender1"><label for="gender1"> Female</label></td>
			<td class="vtop tips2">&nbsp;</td>
		</tr>
    
        <tr>
			<td class="td22"><span class="red">*</span>Branch:</td>
			<td class="vtop ">
				<select class="select" name="branch_id">
					<option value="">Select a branch</option> 
					<* foreach key=cid item=con from=$branchinfo *>
						<option value="<* $cid *>" /><* $con *></option>        
					<* /foreach *>
				</select>
			</td>
		</tr>
        <tr>
			<td class="td22">Mobile:</td>
			<td class="vtop "><input name="mobile" value="" type="text" class="txt" /></td>
			<td class="vtop tips2">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3" class="td27">
			<input name="submitbutton" id="submitbutton" type="submit" value=" Save " class="btn"/>
			&nbsp;&nbsp;
			<input  type="button" value=" Back to list " class="btn" onClick="history.back();"/></td>
		</tr>
 </table>
 
</form>
<!-- <script type="text/javascript" src="/js/crmStaffCheck.js"></script> -->

<* include file=$bottom_file *>